package com.fxp.project.jiuselu.web.business.v1.controller.clause;


import com.fxp.project.jiuselu.web.base.controller.BaseController;
import com.fxp.project.jiuselu.web.domain.CommonResult;
import com.fxp.project.jiuselu.web.models.clause.entity.UserClause;
import com.fxp.project.jiuselu.web.models.clause.service.IUserClauseService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.security.access.prepost.PreAuthorize;
import org.springframework.web.bind.annotation.*;

import java.util.List;

/**
 * 条款管理Controller
 *
 * @author Jason.Wang
 * @date 2022-05-04
 */
@RestController
@RequestMapping("/user/clause")
public class UserClauseController extends BaseController
{
    @Autowired
    private IUserClauseService userClauseService;

    /**
     * 查询条款管理列表
     */
    @GetMapping("/list")
    @CrossOrigin
    public CommonResult list(UserClause userClause)
    {
        List<UserClause> list = userClauseService.selectUserClauseList(userClause);
        return CommonResult.success(list);
    }


}
